<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的回顾首页</title>
    <script src="jQuery.txt.js"></script>
    <script>
        $(document).ready(function(){
            $("#btnreg").click(function (){
                var data={
                    "txtname":$("#txtname").val(),
                    "txtpwd":$("#txtpwd").val(),
                    "sex":1,
                    // "txtsex":$("#txtsex").val(),
                    "txtemail":$("#txtemail").val(),
                    "txtphone":$("#txtphone").val(),
                    "txtresume":$("#txtresume").val()

                }
                $.post("shixun_war_exploded/RegServlet",data,function (data,status){

                })
            })
        });
    </script>
</head>
<body>
<form action="regservlet" method="post">
    <table width="50%" style="text-align: center" border="1">
        <tr>
            <td>用户名</td>
            <td><input type="text" id="txtname" name="txtname"></td>
        </tr>
        <tr>
            <td>密码</td>
            <td><input type="password" id="txtpwd" name="txtpwd"></td>
        </tr>
        <tr>
            <td>sex</td>
            <td>
                <input type="radio" name="sex" value="1" checked>男
                <input type="radio" name="sex" value="0" >女
            </td>
        </tr>
        <tr>
            <td>Email</td>
            <td><input type="text" id="txtemail" name="txtemail"></td>
        </tr>
        <tr>
            <td>Phone</td>
            <td><input type="text" id="txtphone"name="txtphone" ></td>
        </tr>
        <tr>
            <td>Resume</td>
            <td><input type="text" id="txtresume"name="txtresume" ></td>
        </tr>
        <tr>
            <td style="text-align: center"colspan="2">
                <input type="submit" id="btnreg" value="注册"></td>
        </tr>

    </table>
</form>
</body>
</html>